package cn.homework.service.impl;

import cn.homework.dao.RegisterDao;
import cn.homework.dao.impl.RegisterDaoImpl;
import cn.homework.domain.Admin;
import cn.homework.domain.Customers;
import cn.homework.service.RegisterService;

/**
 * @author ACT
 */
public class RegisterServiceImpl implements RegisterService {
    RegisterDao dao = new RegisterDaoImpl();

    @Override
    public void registerCustomer(Customers customers) {
        dao.addRegisterCustomer(customers);
    }

    @Override
    public Customers queryCustomer(Customers customers) {
        return dao.queryRegisterCustomer(customers);
    }

    @Override
    public Customers updateCustomer(Customers customers) {
        return dao.updateCustomerMaterial(customers);
    }

    @Override
    public Admin queryAdmin(Admin admin) {
        return dao.queryRegisterAdmin(admin);
    }

    @Override
    public void registerAdmin(Admin admin) {
        dao.addRegisterAdmin(admin);
    }
}
